home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d18 / cw_write.arc / CWRITE.DOC < prev    next >
Text File  |  1990-04-22  |  54KB  |  970 lines

  1.  
  2.                       Centiwrite 1.10 User's Manual
  3.                       ========== ==== ====== ======
  4.  
  5.                    Copyright 1988 Andrew M. Saucci, Jr.
  6.  
  7.                              What's to Follow
  8.  
  9.     1.  What Do I Do With This Thing, Anyway?
  10.     2.  About the Author
  11.     3.  Installing Centiwrite
  12.     4.  Loading Centiwrite
  13.     5.  Command-Line Switches
  14.     6.  What's in a Name?
  15.     7.  What Not to Load
  16.     8.  What You Can Load
  17.     9.  How Long is the Width of the Screen?
  18.    10.  The Status Indicators
  19.    11.  Insert/ Overstrike Modes
  20.    12.  Cursor Movement
  21.    13.  Character Deletion
  22.    14.  More Deletion
  23.    15.  File Saving and Exiting
  24.    16.  Character Repetition
  25.    17.  Undo Last Keystroke
  26.    18.  Displaying the ASCII Value of a Character
  27.    19.  Changing the Encryption Option
  28.    20.  Inserting an ASCII Zero
  29.    21.  Displaying the Date and Time
  30.    22.  Nobody's Perfect
  31.    23.  Why Become a Registered Owner?
  32.    24.  OK, So You Asked
  33.    25.  Attention, Developers!
  34.    26.  Special Service
  35.    27.  Down to Brass Tacks
  36.    28.  Before Going to the Highest Court in the Land
  37.    29.  Boilerplate
  38.    30.  To All Those Who Helped
  39.  
  40.  ===========================================================================
  41.  
  42.                  What Do I Do With This Thing, Anyway?
  43.  
  44.           Congratulations on having acquired this useful editor. You should
  45. find it immediately useful for a variety of tasks. Some possible uses are
  46.  
  47. 1. Editing CONFIG.SYS and AUTOEXEC.BAT files.
  48.           These files generally do not exceed a screen in length, and 99% of
  49.    the features of a word processor are wasted on these. In fact, if you
  50.    haven't yet learned how to save an ASCII file with your word processor, you
  51.    probably haven't been able to edit these two important files.
  52.  
  53. 2. Replacing EDLIN.
  54.           Although it can't do everything EDLIN can do, Centiwrite is better
  55.    for all the things anyone would WANT to do with EDLIN. If you've been
  56.    stuck using EDLIN, you'll find Centiwrite a welcome relief.
  57.  
  58. 3. Writing a "letter to the editor."
  59.           Everyone knows that a letter that is too long will be "condensed" to
  60.    fit the available space. Now, stop to think for a minute. Editors are people
  61.    just like the rest of us. They don't like extra work any more than anyone
  62.    else. If your letter is already short enough for publication, it STARTS with
  63.    a much better chance than another letter that requires work on the editor's
  64.    part to make it fit. Centiwrite won't let you write a letter longer than a
  65.    screen, so you'll have the discipline needed to stick within the limit.
  66.    Besides, why write more than a page if most of it will get discarded
  67.    anyway?
  68.  
  69. 4. Keeping an editor on floppies.
  70.           Some people still use floppies for various reasons, particularly
  71.    if they own laptops, which may not even have a hard drive. Centiwrite is
  72.    small enough to fit on a single floppy of any size and still leave room
  73.    for other programs. A word processor may be too unwieldy for this. In fact,
  74.    you may even want to put Centiwrite on all your floppies.
  75.  
  76. 5. Creating "bulletin board" messages for on-line services.
  77.           If you are a regular user of the bulletin board section of an
  78.    on-line service, you've probably had it with those pesky line editors that
  79.    serve only to enrich either the coffers of the company that owns the
  80.    service or the coffers of your favorite long-distance company. You
  81.    may be able to create your messages beforehand using Centiwrite and upload
  82.    the result in a flash, or if your communications program has a "shell to
  83.    DOS" feature, you could switch to Centiwrite while still on-line and then
  84.    upload. Check with others on your service for more information.
  85.  
  86. 6. Sending control codes to your printer.
  87.           Often, you need to send codes to your printer to tell it to do
  88.    things such as to skip to a new page. Creating these codes is sometimes
  89.    a pain in the neck, especially with a word processor. Centiwrite gives
  90.    you an easy way to create short files containing these codes. To place
  91.    an ESC (ASCII 27) in a file, just press ESC! Form feed (ASCII 12) is
  92.    almost as easy-- just press Ctrl-L. These characters are not displayed
  93.    in an artificial way, either. ESC, for instance, is shown as an arrow
  94.    pointing left.
  95.  
  96. 7. Creating short scripts for redirection.
  97.           You may not have known that many DOS commands can have their input
  98.    (and output) redirected. That is, you could take a file and send it as
  99.    input to a command such as DEBUG, which if used correctly, can make useful
  100.    changes in your programs. Preparing a short script in advance gives you the
  101.    opportunity to check for errors before sending the file to DEBUG, which can
  102.    be very nasty when mistakes are made. Centiwrite can create many of these
  103.    scripts very easily.
  104.  
  105. 8. Creating files to be sent to ANSI.SYS.
  106.           Your work can be significantly expedited if you install ANSI.SYS
  107.    (included with DOS) and use it to customize your prompt, screen colors,
  108.    and key assignments (for example, you can make F10 display a directory
  109.    in a flash). Centiwrite, unlike other programs, gives you an easy way to
  110.    create the Escape character needed to "announce" an ANSI.SYS command-- just
  111.    press ESC! (Check your DOS manual or primer to learn more about ANSI.SYS if
  112.    you aren't already familiar with this important subject.)
  113.  
  114. 9. Training new users.
  115.           A person who has never used a text editor, word processor, or even
  116.    a computer before will be totally confused if the first lesson is given on
  117.    a full-fledged word processor. Many people will just quit after quickly
  118.    being overwhelmed by the countless features and unfamiliar terminology of a
  119.    typical $400-$500 product. People generally feel better if they can totally
  120.    master a product. Centiwrite has such a small set of commands that anyone
  121.    can quickly become proficient with it, yet it is powerful enough to be
  122.    useful even to advanced users. It's perfect for use in schools and corporate
  123.    training programs.
  124.  
  125. 10. Hiding your messages from nosy associates.
  126.           The encryption feature, new with version 1.10, will keep people
  127.     from reading your short notes simply by using the TYPE command or
  128.     their favorite file browser. It won't keep the CIA out, but it could
  129.     prove useful. Plus, just think of the smug self-satisfaction you'll
  130.     have when the office gossip looks you straight in the eye and says,
  131.     "How could you DO THAT to me?"
  132.  
  133. 11. Saving money.
  134.           Everyone can afford Centiwrite. At $20.00, it's "well worth the price
  135.    of admission."
  136.  
  137.  =============================================================================
  138.  
  139.                             About the Author
  140.  
  141.           Andrew M. Saucci, Jr. was graduated with distinction from the
  142. New York Institute of Technology with a master's degree in computer science.
  143. He received a bachelor's degree in computer science from Hofstra University.
  144. Mr. Saucci, a member of the Association of Shareware Professionals (ASP) and
  145. the Association for Computer Machinery (ACM), has programmed in Turbo Pascal
  146. for over one year now using his Dell System 200. He is also the author of the
  147. program "The Holy Rosary."
  148.  
  149.           Mr. Saucci can be reached at any of the following electronic mail
  150. addresses:
  151.  
  152. CompuServe  72117,241
  153. GEnie       A.SAUCCI3
  154. Delphi      ASAUCCI
  155. The Source  BFE501
  156. BIX         ASAUCCI
  157.  
  158.           Comments about any of his products are most welcome; however,
  159. please allow one week for a response to your initial inquiry. After that,
  160. an "active" mailbox is checked daily. Also, to guarantee a response, use
  161. the regular mail facility of your service rather than a bulletin board area.
  162. One week is a "worst case" situation as well. Often, mailboxes are checked
  163. more frequently. In particular, the CompuServe box is checked most often.
  164.  
  165.  ============================================================================
  166.  
  167.                           Installing Centiwrite
  168.  
  169.           Installation of Centiwrite could not be simpler. Simply copy the
  170. file CWRITE.EXE onto another disk. If you copy it onto a hard disk, you'll
  171. probably want to put it in a directory that is specified in your PATH
  172. statement (\UTIL, for example). That way, you'll be able to run it no matter
  173. what the default directory is, simply by typing "cwrite" at any DOS prompt.
  174. A PATH command that would do this is "PATH=C:\UTIL". If such a command is
  175. placed in the file AUTOEXEC.BAT in your root directory, you're set. Otherwise,
  176. you'll have to enter the full path name, for instance "\progs\best\cwrite".
  177. Whatever you do, designate one copy as an "original" and NEVER use it for
  178. anything else other than making copies. The fee for a replacement copy of
  179. Centiwrite is $3.00 plus applicable taxes when ordered direct.
  180.  
  181.  ==========================================================================
  182.  
  183.                             Loading Centiwrite
  184.  
  185.           To run Centiwrite, type "cwrite" followed (if you wish) by the name
  186. of a file you want it to load. The file name may be preceded by a drive letter
  187. and a full path if necessary. If you do not type a file name on the command
  188. line, you will be prompted for one. Even if you are creating a new file, you
  189. must first name it before proceeding. To accept the default name "cwfile.txt",
  190. press ESC when prompted for the name. If no errors occur, you will be placed
  191. immediately into the editor and can begin making changes or additions. The
  192. copyright notice will appear on the status line when you are first placed
  193. into the editor. The first key you press will replace the copyright message
  194. with the normal status line.
  195.  
  196.           If any error occurs, an error message will appear and you will be
  197. prompted for a new file name. The old name will be displayed and you may edit
  198. it using the usual commands and keys, or you may retain it without changes and
  199. try again by pressing ENTER. After you make changes, pressing ENTER at any
  200. time enters the new file name; moving the cursor to the end of the line is not
  201. necessary. Pressing ESC assigns the default name of "cwfile.txt". You may
  202. change all or part of the file name, as well as the drive letter and path.
  203. Note that while entering the file name, all letters are automatically converted
  204. to uppercase, and invalid characters such as ">" will be ignored by the input
  205. routine. However, you may, as usual, enter any character which may be used in a
  206. file name by holding down Alt and entering its ASCII code number on the numeric
  207. keypad. Also, the trademark of this program, the non-blinking cursor, is
  208. maintained for your convenience.
  209.  
  210.  ===========================================================================
  211.  
  212.                           Command-Line Switches
  213.  
  214.           Centiwrite takes eight possible command-line switches, which may be
  215. specified in any order, provided that they are separated by spaces. The
  216. first is /m. This will force monochrome color attributes regardless of your
  217. monitor or display adapter. Use this switch if you start to steam on account
  218. of not being able to read the text. Once you use CWCUSTOM to customize your
  219. copy of Centiwrite, you won't need this switch at all.
  220.  
  221.           The second switch is /ey (Encryption Yes). This enables automatic
  222. encryption and decryption. DON'T use this if you are loading a non-encrypted
  223. file. You'll see garbage on the screen, plus a "line too long" error message.
  224. To encrypt an existing file, load it normally, press F6 to enable encryption,
  225. and then save it. To decrypt an existing file, load it with the /ey switch,
  226. press F6 to disable encryption, and then save it. Note that this is a minimum-
  227. security program-- no passwords are required, and anyone who knows how to use
  228. Centiwrite will be able to decrypt a file encrypted with Centiwrite. You can,
  229. of course, hide Centiwrite using CHATTRIB.EXE (see below), which would help
  230. guard against that sort of thing. If you inadvertently load a non-encrypted
  231. file with the /ey switch, press Alt-D to exit immediately so that no damage
  232. will be done. Also, Centiwrite will only decrypt files that were encrypted
  233. using the same algorithm that Centiwrite uses; don't count on it to fix a
  234. file encrypted by another program to which you have lost the password.
  235. (This encryption is equivalent to Deciwrite's Level 1.)
  236.  
  237.           The third switch is /en (Encryption No). It disables automatic
  238. encryption and decryption. Unless you use CWCUSTOM to make Encryption On your
  239. default, you don't need /en, because /en is the "factory" default. When you
  240. have encryption off, Centiwrite will try to use the input file as is. Again,
  241. if you mistakenly load an encrypted file with the /en switch, immediately
  242. press Alt-D to exit.
  243.  
  244.           The fourth switch is /sa (Save Automatic). When used, this switch
  245. enables the automatic save feature of Centiwrite. Your file will be saved
  246. every five minutes, unless you save it yourself manually. Each manual save
  247. resets the "save clock" so that the next automatic save would occur five
  248. minutes after your manual save. The five-minute interval is based solely on
  249. the author's personal opinion and will be changed on public demand.
  250.  
  251.           The fifth switch is /sm (Save Manual). If this switch is used,
  252. no automatic saves are done. This is the "factory" default. You can use
  253. CWCUSTOM to change the default to /sa if you like.
  254.  
  255.           The sixth switch is /vb (Video BIOS). This switch disables the
  256. direct screen writes normally used and transforms Centiwrite into a well-
  257. behaved application (we hope). This may help you to use the program with
  258. windowed operating environments such as Desqview or Concurrent DOS. Note
  259. that writing to the screen through the video BIOS is somewhat slower than
  260. writing directly to the screen.
  261.  
  262.           The seventh switch is /vd (Video Direct). This is the "factory"
  263. default and need not be used unless you use CWCUSTOM to make /vb your own
  264. personal default.
  265.  
  266.           The eighth switch is /ls (Load Screen). This is the switch to use
  267. if you want to load the current screen into the program. You can then edit
  268. and save it. This works much like Print Screen, except that the screen is
  269. saved to a file instead of to the printer. When you load a screen, you must
  270. still specify the name of the file to which to save the screen, either on
  271. the command line or at the "Please enter a file name:" prompt. If the name
  272. you give denotes an existing file, it will not be given special treatment.
  273. Also, the rightmost two columns of each line will be ignored. In most cases,
  274. this will not be a problem.
  275.  
  276.           All of these switches can be entered in either upper-case characters
  277. or lower-case characters. If you use both /ey and /en (because you're testing
  278. Centiwrite's patience), the one which appears first on the command line will
  279. take precedence. Likewise, when both /sa and /sm or both /vb and /vd are used,
  280. the same priority applies. Also, if two file names appear on the command line,
  281. only the first is used.
  282.  
  283.  ===========================================================================
  284.  
  285.                           What's In a Name?
  286.  
  287.           Centiwrite will accept any legitimate DOS file name, with the
  288. following restriction: reserved device names are not allowed. These are
  289. CON, PRN, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, CLOCK$, and NUL.
  290. If you do enter one of these, an error message will appear, and you will
  291. be asked to enter a new file name. You wouldn't want to use these anyway,
  292. unless you're testing a program that uncrashes systems.
  293.  
  294.           Also, if you avoid using the name "cwfile.txt" for any file anywhere
  295. on your system, it should work in a pinch when nothing else does-- it is, when
  296. loading the file, the default name used if you press ESC when the prompt for a
  297. file name appears. If an error message appears while you are attempting to
  298. save a file, ESC will return you to the editor, where you can press Alt-D or
  299. Alt-X to exit the program if you wish.
  300.  
  301.  ============================================================================
  302.  
  303.                            What Not to Load
  304.  
  305.           Technically, you can load any DOS file into Centiwrite. However,
  306. because of its inherent limitations, you probably won't want to load many
  307. kinds of files. On the other hand, if you ever make a mistake, simply press
  308. Alt-D before any saves, and the original file will remain untouched.
  309.  
  310.           First, because Centiwrite can only display the first screen of a
  311. file, the remainder will be discarded. If you load a 400K file and then save
  312. it, only the first screen will remain. You can still recover it, though, if you
  313. only made one save, because the original 400K file is unchanged but renamed
  314. with an ".old" extension. Two saves, though, erases the original as well. In
  315. general, therefore, any file that does not fit on a single screen should not
  316. be used with Centiwrite. If you do load such a file, the message "The file
  317. was too long and will be truncated for editing." will appear. You then have a
  318. chance to exit with Alt-D.
  319.  
  320.           Second, because only lines that can fit on the screen can be
  321. displayed, any line longer than the width of your screen is truncated. Again,
  322. if you don't want to lose what was truncated, press Alt-D before any saves.
  323. If such a file is loaded, a message will appear such as the one below:
  324.  
  325.    At least one line in the file was too long and was truncated for editing.
  326.  
  327.           Third, a file created by a word processor is likely to have many
  328. formatting codes embedded within. Centiwrite assigns no special meaning to
  329. these, and this could cause "line too long" or "file too long" problems.
  330. If the file is otherwise short enough, use the word processor first to save it
  331. as a plain ASCII file.
  332.  
  333.           Fourth, a file containing the four ASCII characters 7 (bell),
  334. 8 (backspace), 10 (line feed), and 13 (carriage return) will have those
  335. characters removed before editing. (The 13-10 COMBINATION which is standard
  336. in text files is acceptable, however.) Centiwrite will not handle these four
  337. characters and will ignore them if entered.
  338.  
  339.           Fifth, program (binary) files are totally incompatible with
  340. Centiwrite. You can't do much that is useful with them, so don't bother
  341. loading one. If you ever mistakenly load a program file, you'll see random-
  342. looking graphics characters, and probably quite a few blanks. Moreover, its
  343. lines will be too long, and the messages for "line too long" and "file too
  344. long" will appear. Immediately press Alt-D to exit if you load a program file.
  345.  
  346.           Sixth, don't load encrypted files with the /en switch or non-
  347. encrypted files with the /ey switch. You'll get truncated garbage.
  348.  
  349.           Seventh, don't load this file. It's way too long.
  350.  
  351.  ============================================================================
  352.  
  353.                             What You Can Load
  354.  
  355.           Centiwrite will load without incident any ASCII text file shorter
  356. than the number of lines on your screen minus the two top lines that are
  357. reserved for the file name and status information. On a 25-line screen, for
  358. example, the maximum number of lines that can be edited is 23. If your display
  359. is operating in EGA's 43-line mode or VGA's 50-line mode when the program is
  360. loaded, the extra lines are available for editing. Note, however, that files
  361. created in 43-line or 50-line mode will be truncated if they are later loaded
  362. in 25-line mode. You may also load the current screen into the program (see
  363. the /ls switch above).
  364.  
  365.  ============================================================================
  366.  
  367.                      How Long is the Width of the Screen?
  368.  
  369.           The rightmost column of the screen is reserved by Centiwrite and
  370. is not used. The column to the left of that is used only to display the
  371. cursor if it is at the end of the line. Therefore, on an 80-column wide
  372. screen, a maximum of 78 characters may appear on any one line. Centiwrite
  373. will ignore any attempt to make a line longer than 78 characters on an
  374. 80-column wide display.
  375.  
  376.  =============================================================================
  377.  
  378.                             Details to Follow
  379.  
  380.          Experienced users will probably be able to learn Centiwrite from the
  381. "Command Summary" which appears by pressing F1 when in the editor. They may,
  382. therefore, wish to skip to the section below labeled "File Saving and Exiting."
  383.  
  384.  =============================================================================
  385.  
  386.                            The Status Indicators
  387.  
  388.           Centiwrite's display is divided into three parts. The first is
  389. provided by the file-handling part of the program and appears on a magenta
  390. background on color monitors. It consists of the title "Centiwrite 1.10" and
  391. the name of the current file. The other two parts come from the editor itself.
  392.  
  393.           The "status line" shows whether the program is Insert or Overstrike
  394. mode as well as the line and column number of the current cursor position.
  395. The status line also displays any messages which may appear, such as the
  396. copyright notice. These special messages usually appear on a green background.
  397.  
  398.           The edit window follows the status line. All text to be entered into
  399. the file appears here.
  400.  
  401.  =============================================================================
  402.  
  403.                           Insert/Overstrike Modes
  404.  
  405.           The editor will normally start in Insert mode, as indicated on the
  406. status line. This means that new characters are inserted into the text at the
  407. cursor position, but only if they will not make the line too long. If the line
  408. is already as wide as your screen will permit, new characters are ignored. The
  409. only key that behaves differently based upon whether or not the editor is in
  410. Insert mode (apart from the character keys) is Enter(Return). In Insert mode,
  411. Enter breaks the current line at the cursor position if the screen will
  412. accomodate an additional line. If not, the key is ignored.
  413.  
  414.           In Overstrike mode, Enter simply moves the cursor to the beginning of
  415. the next line. Typing a new character will replace the character at the cursor
  416. position, except when the cursor is past the right margin. In that case, the
  417. key is ignored. Overstrike mode is indicated by the word "Overstrike" on the
  418. status line. It appears in boldface on monochrome monitors and white on red on
  419. color monitors. To switch between these two modes, simply press the Insert key.
  420.  
  421.  =============================================================================
  422.  
  423.                               Cursor Movement
  424.  
  425.           The first thing you will notice about Centiwrite is the absence of
  426. the hated blinking cursor. In fact, a primary reason for writing this program
  427. was to get rid of that thing once and for all. In Centiwrite, the cursor will
  428. appear in reverse video on monochrome systems and as a black on light gray
  429. character on color systems. This is usually quite adequate to call your
  430. attention to the cursor without demanding immediate action. Further, the
  431. code required to simulate a cursor (which is usually provided by hardware)
  432. does not noticeably slow the program.
  433.  
  434.           When the cursor is located on a character, the character appears in
  435. its usual form, except for these three: ASCII zero, ASCII 32 (blank) and
  436. ASCII 255. As distributed from the "factory," these characters are displayed
  437. as blanks. On a monochrome system, however, if you use a simple boldface
  438. cursor, you will lose the cursor if it rests on any of them. Use CWCUSTOM to
  439. select an alternate "Blank Character." The "Blank Character" is also displayed
  440. at the cursor position when the cursor is past the end of the line.
  441.  
  442.           Most of the usual types of cursor movement are supported by
  443. Centiwrite. The arrow keys can be used to move the cursor one column or line
  444. at a time anywhere in the edit window, except past the bottom line. In order
  445. to move to a position past the bottom line, you must first create enough new
  446. lines (using Enter) to move the bottom line so that the new position is
  447. accessible. Any attempt to move the cursor off the screen or past the bottom
  448. line will be ignored. Also, the left and right arrow keys do not "wrap"--
  449. that is, if you reach the beginning or end of the line, you must use either the
  450. up/down keys or the Ctrl-Left arrow or Ctrl-Right arrow combinations in order
  451. to move off the line.
  452.  
  453.           The Control (Ctrl) key can be used in combination with both the
  454. left arrow and the right arrow keys to move the cursor to the first character
  455. of the next word in the appropriate direction. A "word" in this case is any
  456. group of characters separated by one or more spaces. These key combinations
  457. DO wrap. Consequently, you can move through the entire file by words simply
  458. by starting at Line 1, Column 1 and holding down the Ctrl-Right arrow
  459. combination. Note that the column at the end of the line is also treated as
  460. "the first character of a word."
  461.  
  462.           Centiwrite has fixed tabs at the following columns on an 80-column
  463. display: 1, 11, 21, 31, 41, 51, 61, 71, and 79. Pressing Tab moves the cursor
  464. to the next highest of these tabs. Pressing Shift-Tab moves the cursor to the
  465. next lowest of these. Both these keys are ignored if the cursor is in either
  466. the leftmost or the rightmost column of the screen. Tab, by itself, does not
  467. insert any spaces into the text, but simply moves the cursor. However, any
  468. time the cursor is past the end of the line (regardless of how it got there),
  469. and any character is inserted, the line will be padded with sufficient space
  470. characters (ASCII 32) to fill the gap.
  471.  
  472.           The Home and End keys are fairly straightfoward. Home moves the
  473. cursor to the first column of the current line. If the cursor is already
  474. there, it moves to the first column of the previous line. Ctrl-Home moves
  475. the cursor to Line 1, Column 1. End moves the cursor one column past the last
  476. character on the line, or one column past the last character on the next line
  477. if the cursor is already at the end of the line. Ctrl-End moves the cursor
  478. one column past the last character on the last line.
  479.  
  480.  ============================================================================
  481.  
  482.                            Character Deletion
  483.  
  484.           The two keys to use to delete single characters are Backspace and
  485. Delete. These work as they do in most text editors and word processors, but
  486. with the usual Centiwrite restrictions. Backspace deletes the character to the
  487. left of the cursor and shortens the line. If the cursor is in column 1, and
  488. the combined length of the current line and the previous line is less than the
  489. width of the screen, the two lines will be combined. Otherwise the key is
  490. ignored. Delete removes the character at the cursor position and shortens the
  491. line. If the cursor is one column to the right of the last character on the
  492. line, that line and the following line will be combined if the new line would
  493. fit on the screen; otherwise, the key is ignored.
  494.  
  495.  ============================================================================
  496.  
  497.                              More Deletion
  498.  
  499.           Pressing Alt-T deletes the word which starts at the cursor position.
  500. Here, a "word" is a group of blanks OR a group of non-blank characters
  501. possibly followed by trailing spaces. You can delete a series of words by
  502. pressing and holding Alt-T. However, when the cursor is at the end of the line,
  503. Alt-T is ignored.
  504.  
  505.           Alt-B deletes all characters from the first column of the line to
  506. just left of the cursor. If the cursor is at column 1, the key is ignored.
  507. Alt-E deletes all characters from the cursor position to the end of the line.
  508. If the cursor is at the end of the line, (all together, now) the key is
  509. ignored. Note that Alt-E deletes the character at the cursor while Alt-B
  510. does not.
  511.  
  512.           Alt-Y deletes the current line entirely. If the deleted line was
  513. not the last line, the cursor remains where it was; otherwise, it moves one
  514. line higher and stays in the same column. If the file consists of a single
  515. line, and it is deleted with Alt-Y, the cursor moves to Line 1, Column 1.
  516.  
  517.  =============================================================================
  518.  
  519.                           File Saving and Exiting
  520.  
  521.           Saving a file using Centiwrite is as easy as pressing a single key.
  522. Pressing F2 saves the file as it appears on the screen, and keeps you in the
  523. editor to make additional changes. Alt-X functions identically, but ends the
  524. program. Alt-D discards the contents of the screen and ends the program. The
  525. details of file saving follow.
  526.  
  527.           Whenever you save a file, the procedure below is followed.
  528.  
  529. 1. The disk is checked to see if a file with the current file name exists.
  530.    If not, the file is simply copied to the disk. Otherwise the process
  531.    continues.
  532.  
  533. 2. Any file with the same name but an extension of ".old" is erased.
  534.  
  535. 3. The original is renamed with the ".old" extension.
  536.  
  537. 4. The new file is copied to the disk.
  538.  
  539.           If any error occurs during this process, an error message is
  540. displayed and you are given an opportunity to change file names, just as in
  541. loading the file. The importance of this approach is underscored here. If, for
  542. any reason, the file cannot be saved as originally desired, you can switch to
  543. a file name that works.
  544.  
  545.           For instance, if you try to save the file "a:ralph.txt" and drive
  546. A is on fire, you'll probably get an error message such as "Drive not ready."
  547. Instead of being unable to save the file, you can simply change the file name
  548. to "c:ralph.txt" and save to the hard drive. No data is lost. This feature is
  549. particularly useful if you're working with floppies and you don't happen to
  550. have extra ones formatted when the inevitable "Disk is full" or similar
  551. message appears.
  552.  
  553.           After you change the file name (or decide to retry with the same
  554. name) the above procedure is repeated starting with step 1. This reduces the
  555. likelihood of a small error confusing the program. Also, regardless of how
  556. many times you save the file, the same sequence is repeated. Thus, if you
  557. start with files "joe.txt" and "joe.old" on the disk, and save six times,
  558. only the last two versions will remain on the disk-- the originals, plus some
  559. additional versions, will have been replaced by the saves.
  560.  
  561.           The extension of ".old" for backup files is used because of the
  562. inane similarity of ".bak" to ".bat". The number of ".bat" files which have
  563. been edited and immediately erased by errant fingers getting the last letter
  564. wrong must be in the millions. When you use Centiwrite, you won't have to make
  565. the same mistake. Also note that you CAN edit a file with an extension of
  566. ".old". In that case, backups will have the extension ".prv".
  567.  
  568.           When you exit the program by pressing Alt-D, the message "Discard
  569. screen and exit? (Y/N)" will appear on the status line in boldface on
  570. monochrome monitors and in white on red on color monitors. You must press
  571. "Y" in order to confirm that you indeed wish to exit. Pressing any other key
  572. will cancel Alt-D and leave you in the editor. Exiting via Alt-D does NOTHING
  573. to any copies of the file on any disk-- it simply discards the contents of
  574. the edit window without saving them. Therefore, if you created a new file
  575. and didn't save it, no copy would exist and it would be totally lost. If you
  576. had saved it, only the changes you made since the last save would be lost.
  577.  
  578.  =============================================================================
  579.  
  580.                            Character Repetition
  581.  
  582.           Using the graphics characters, (which have ASCII values of 128 or
  583. more), you can create surprisingly sophisticated effects with Centiwrite.
  584. Recall that you can insert a character by holding Alt and entering the ASCII
  585. code on the numeric keypad. If you do this with ASCII 220, you'll see a
  586. small, solid box appear. Then press Alt-H (horizontal repeat). A solid line
  587. will be drawn across your screen. Notice that this is unlike what you would
  588. get by holding down the equals sign, for instance. Used judiciously and
  589. sparingly, the graphics characters can add real spice to your short (and
  590. otherwise drab) little note.
  591.  
  592.           The two key combinations Alt-H and Alt-V (for vertical repeat) are a
  593. big help in creating these effects. Alt-H repeats the last character entered
  594. and moves the cursor one column to the right. Alt-V repeats the last character
  595. entered and moves the cursor one column down. (If the cursor cannot be moved
  596. in the appropriate direction, the key is ignored.) Without these keys, you
  597. would have to enter Alt-220 80 times on the numeric keypad to generate the
  598. same effect. Now you can see why most people write short, drab little notes.
  599.  
  600.           Just as an example of what you can do with this "neat trick," load
  601. Centiwrite with the file name "template.txt", which should not exist on your
  602. disk. At Line 1, Column 1, type Alt-220. Then press Alt-H until you get to
  603. the end of the line. Press Enter and type Alt-221. Press Enter again and then
  604. Alt-V until the cursor is at the bottom of the screen. Type Alt-223 and then
  605. Alt-H until the cursor is at the end of the line. Then move to the last column
  606. of the second line (78 on 80-column monitors) and type Alt-222. Move the
  607. cursor to the last column of the third line, and type Alt-V until your border
  608. (oh, so that's what it is?) is complete. If you're used to typing in Overstrike
  609. mode, (because Centiwrite padded everything with blanks, and you wouldn't be
  610. able to insert anything) you can save "template.txt" and load it whenever you
  611. create a new file so that all your little notes have a border around them. The
  612. point is, however, that this is so easily done, you can use your imagination to
  613. create many more such interesting effects. You don't have to "do it once, so
  614. you'll never have to do THAT again." It's particularly good simply for
  615. underlining with contiguous characters rather than ordinary ones with space
  616. between them.
  617.  
  618.  ============================================================================
  619.  
  620.                             Undo Last Keystroke
  621.  
  622.           Centiwrite saves a complete duplicate of your file in memory before
  623. each keystroke. By pressing F3, you can reverse the effect of ANY keystroke
  624. in the program, including F3 itself. Repeatedly pressing F3 toggles between
  625. the two copies of your file in memory. The cursor position for each copy is
  626. also saved. Not only are you able to recover from an inadvertent Alt-Y, but
  627. if the program has some kind of bug left in it, the Undo feature works simply
  628. and reliably enough that it should be able to recover. You might also use Undo
  629. to switch between slightly different versions of your file so that you can
  630. decide which is better.
  631.  
  632.  ===========================================================================
  633.  
  634.                    Displaying the ASCII Value of a Character
  635.  
  636.           Pressing F5 displays the ASCII code (from 0 to 255) of the
  637. character at the current cursor position. This is useful if you load a file
  638. containing graphics characters, and you see one you would like to use. Just
  639. move the cursor onto it, and press F5 to see its value. You can then enter
  640. it using the Alt+ numeric keypad method. It also helps distinguish among
  641. ASCII zero, ASCII 32 (blank) and ASCII 255, which all appear as a blank.
  642. The display will remain for 2.5 seconds.
  643.  
  644.  ============================================================================
  645.  
  646.                        Changing the Encryption Option
  647.  
  648.           If you want to change the setting of the encryption flag, press
  649. F6. This alone will NOT alter any files on a disk, but simply change the
  650. option for the next save. A message will appear briefly on the status line
  651. indicating either "Encryption is ON" or "Encryption is OFF."
  652.  
  653.  ============================================================================
  654.  
  655.                           Inserting an ASCII Zero
  656.  
  657.           Occasionally, you will find the need to insert an ASCII zero into
  658. a file. ASCII zero is the only character (apart from 7, 8, 10, and 13
  659. mentioned under "What Not to Load") that cannot be entered using the
  660. Alt+ numeric keypad method; therefore, just as in DOS, pressing F7 will
  661. insert it into your file.
  662.  
  663.  =============================================================================
  664.  
  665.                         Displaying the Date and Time
  666.  
  667.           Pressing F8 will display the current system time on the status line.
  668. Pressing Ctrl-F8 will display the current system date on the status line. Each
  669. will remain displayed for 2.5 seconds.
  670.  
  671.  =============================================================================
  672.  
  673.                              Nobody's Perfect
  674.  
  675.           Centiwrite is written to very high standards, particularly in
  676. terms of its error-handling capabilities. The program recovers most gracefully
  677. from almost all errors, especially the most common ones, such as "Drive not
  678. ready" and "Disk is write-protected." In fact, you might say it is "built like
  679. a tank." This is just part of what makes it an exceptional value and is what
  680. separates it from "weekend projects." However, in some rare cases, the program
  681. may abruptly terminate and display an error message such as:
  682.  
  683. Runtime error 200 at 1A34:076F.
  684.  
  685.          If this occurs, you should report the problem to one of the electronic
  686. mail addresses listed earlier. In all cases, the screen will be cleared and the
  687. cursor restored. The one most likely to occur is #202, Stack overflow. If any
  688. other error occurs, the probable cause is either corrupted code or hardware
  689. failure.
  690.  
  691.  =============================================================================
  692.  
  693.                       Ready, Set, But Wait, There's More
  694.  
  695.           You now should know all that is necessary to operate Centiwrite
  696. intelligently. First, before you rush to use the program, you'll be interested
  697. in a few matters of business, which follow below.
  698.  
  699.  =============================================================================
  700.  
  701.                         Why Become a Registered Owner?
  702.  
  703.           Right now, you have Centiwrite, and that's not bad. Why stop with
  704. Centiwrite though? Registered owners receive a disk containing not only a
  705. copy of Centiwrite 1.10, but several well-written, easy-to-use utilities as
  706. well. These include
  707.  
  708.  CHATTRIB.EXE    Allows you to change file attributes, including the hidden
  709.                  attribute, interactively. Lets you hide any file, including
  710.                  an entire directory, so that it does not appear in directory
  711.                  listings. Also allows you to unhide a file, particularly
  712.                  useful for "cleaning house" after deleting certain copy-
  713.                  protected software.
  714.  
  715.  BATTRIB.EXE     Provides the functions of CHATTRIB for use in batch files.
  716.  
  717.  DIRALL.EXE      Displays a directory listing like an ordinary DOS "dir"
  718.                  command, but also shows hidden files (which appear in
  719.                  boldface, so you can easily spot them).
  720.  
  721.  DIRHID.EXE      Checks your entire hard disk for hidden files in all
  722.                  directories. Great for checking to see if any "viruses"
  723.                  (which might use hidden files to do their dirty work)
  724.                  have penetrated your system. Lists complete path name of
  725.                  all hidden files.
  726.  
  727.  LCURSOR.EXE     Changes the size of the hardware-generated cursor to a
  728.                  full block character (similar to an ASCII 219). Useful
  729.                  for laptop owners and others who can hardly see the thin
  730.                  line which usually passes for a cursor. Just place in
  731.                  AUTOEXEC.BAT and forget. Now written in assembly language!
  732.  
  733.  XCURSOR.EXE     Eliminates the blinking hardware cursor entirely. You
  734.                  don't need it at the DOS command level anyway, as you
  735.                  can't do anything other than backspace-- the cursor is
  736.                  always at the end of the line. All that blinking thing
  737.                  does is annoy and irritate. Also restores cursors
  738.                  which have been eliminated for any reason.
  739.  
  740.  TIME12.EXE      Displays the current system time in 12-hour (AM/PM)
  741.                  format, unlike DOS, which uses 24-hour time. Also
  742.                  sets the current time interactively in 12-hour format.
  743.  
  744.           Note that NONE of these programs is offered through ANY other
  745. distribution channel. They are a special "thank-you", offered at no additional
  746. charge. "Not sold in stores" is the way it's usually put. You must register,
  747. however, in order to take advantage of this exceptional offer.
  748.  
  749.           If that's not reason enough to register, you'll also receive
  750. CWCUSTOM.EXE, which allows you to select your own screen colors,
  751. insert/overstrike, auto-save, screen write, and encryption defaults.
  752.  
  753.           Still not sold on licensing Centiwrite? Registered users are
  754. entitled to unlimited telephone, U. S. Mail, and electronic mail support.
  755. If such a user finds a bug within three months of purchase, it will either
  756. be fixed or the purchase price will be refunded.
  757.  
  758.           In addition, you'll receive the LATEST version of Centiwrite. A new
  759. version (such as 1.01) is not always uploaded to the on-line services if the
  760. changes are minor. This reduces the workload of the sysops, but it means that
  761. the version you have now may be slightly "stale." Plus, you'll receive notice
  762. if Centiwrite is upgraded. What more could anyone ask?
  763.  
  764.  =============================================================================
  765.  
  766.                            OK, So You Asked
  767.  
  768.           Although Centiwrite and the accompanying utilities are a very good
  769. buy, and many people will feel quite happy with them, it's possible that some
  770. may want an even better deal. That's why you may also choose to purchase an
  771. enhanced version of Centiwrite called Deciwrite. Whereas Centiwrite is so
  772. named because it has about 1/100 of the power of a complete text editor,
  773. Deciwrite has 1/10 of that power. Put another way, Deciwrite is ten times as
  774. powerful as Centiwrite. Even so-called "power users" may like to have a copy
  775. of Deciwrite available for certain small tasks.
  776.  
  777.            Deciwrite includes a number of features not found in Centiwrite,
  778. while preserving the same basic style of operation. Some of these "extra
  779. added attractions" include the following:
  780.  
  781.  1. Automatic word wrap and text reformatting (can be disabled).
  782.  2. Ability to edit and create short program (binary) files.
  783.  3. Complete on-line help for every function.
  784.  4. Shell-to-DOS feature included-- lets you execute any DOS command or program
  785.     from within Deciwrite (subject to available memory).
  786.  5. Ability to change file name when saving-- good for creating and saving
  787.     multiple similar files without exiting.
  788.  6. Files can be loaded from within the program. (In Centiwrite, a file can
  789.     be loaded only at the start of the program.)
  790.  7. Files can be saved with your choice of attributes-- even hidden!
  791.  8. Insert time or date with one keystroke.
  792.  9. Pull-down File menu.
  793. 10. Extra-strength encryption options, with password protection.
  794.  
  795.            These features were omitted from Centiwrite in the interest of
  796. keeping the program reasonably small. They are available to those who are
  797. interested, however, for not much more than the price of Centiwrite. Now
  798. here's another tremendous offer. If you're not sure about which of these two
  799. useful products to buy, get Centiwrite and its accompanying utilities right
  800. now. Then, you'll have a whole year to decide. If at any time in the next
  801. year you find the extra features of Deciwrite attractive, you can purchase
  802. Deciwrite, and the price of Centiwrite will be subtracted from the price of
  803. Deciwrite NOW. (Just add $1 for shipping.) So pay your $20.00 now, and six
  804. months from now you can still buy Deciwrite for just $11.00, regardless of the
  805. price of either product then. You really have little to lose with such a
  806. reasonable offer. Don't forget, too, that Deciwrite comes with a 30-day
  807. money-back guarantee no matter when you buy it.
  808.  
  809.  ============================================================================
  810.  
  811.                           Attention, Developers!
  812.  
  813.           The editor in Centiwrite is written as a Turbo Pascal unit. That
  814. means that you can paste it into your program and not be bothered with writing
  815. your own text editor for short notes, memos, etc. All you have to do is
  816. purchase the Centiwrite Developer's Kit. This contains the file CENTWRIT.TPU
  817. plus the complete instructions on how to integrate Centiwrite into your
  818. program, including a sample calling program. (CENTWRIT.TPU is less than 20K in
  819. length, so including the editor will require substantially less space than the
  820. entire length of CWRITE.EXE.) It may be easier than you think! What's more, the
  821. Centiwrite Developer's Kit comes with the same great offer that the stand-alone
  822. version has: If, at any time in the next year, you decide you need the power of
  823. Deciwrite, you can upgrade to the Deciwrite Developer's Kit for the difference
  824. between what you paid for the Centiwrite Developer's Kit and the price of the
  825. Deciwrite Developer's Kit NOW (plus $1 for shipping). Better still, no
  826. royalties are charged for programs created using either Developer's Kit.
  827.  
  828.           Plus, even if you decide not to use the editor itself, both these
  829. packages come with routines you may have been looking for. One example, from
  830. Deciwrite, is a function that converts a decimal number to a hexadecimal number
  831. (represented as a string). This is the same routine used in Deciwrite's
  832. binary mode. It could be quite useful in a program which uses hex numbers.
  833. Order today!
  834.  
  835.  =============================================================================
  836.  
  837.                              Special Service
  838.  
  839.           Many of you may be understandably upset at not being able to erase
  840. all your backup files with a command such as "erase *.bak" on account of
  841. Centiwrite's use of the ".OLD" extension. Here's an extra-special offer.
  842. Send a check for $10 and copies of up to three programs that make ".BAK" files.
  843. You'll get the programs returned to you patched so that they make ".OLD"
  844. files instead. For each additional program you want patched, the charge is
  845. $2.50. (As this is a service, NY residents need not add local sales tax.)
  846. In addition, registered users of Centiwrite may send up to five programs for
  847. just $7.50. This is another special "thank-you" for your registration. Just
  848. think. You'll have solved two problems at once-- no incompatibilities, and no
  849. more erased ".BAT" files. The author has done this with all the programs on
  850. his own hard disk and has resolved never again to allow any program to be so
  851. "ill-behaved" as to create a ".BAK" file. (In the event that you have a
  852. stubborn program that will not patch easily, your program and fee will be
  853. returned to you.) Scratch one more reason not to use Centiwrite.
  854.  
  855.  =============================================================================
  856.  
  857.                            Down to Brass Tacks
  858.  
  859.       As of July 1, 1989, this is the Centiwrite/Deciwrite price list.
  860.  
  861.                                     Individual License        Site License
  862. *#    Centiwrite 1.10                    $20.00                  $250.00
  863.  #    Deciwrite  1.10                    $30.00                  $500.00
  864.       Deciwrite  1.10 Demo Disk          $ 4.00                  *******
  865. *#    Centiwrite 1.10 Developer's Kit    $32.50                  $550.00
  866.          Upgrade to later version        $ 5.00                  $ 60.00
  867.  #    Deciwrite 1.10 Developer's Kit     $75.00                  $950.00
  868.       Disk replacement fee               $ 3.00                    none
  869.       Shipping & handling                $ 4.00                  $  4.00
  870.  
  871.       * These items can be ordered through the Public (Software) Library;
  872.         others must be ordered directly from the author.
  873.  
  874.       # Shipping & handling charges must be added to these items.
  875.  
  876.       When ordering the Developer's Kit, please specify which version of
  877.       Turbo Pascal you are using (4.0, 5.0, and 5.5 are supported).
  878.  
  879.       New York State residents and businesses MUST add their local sales tax
  880.       or provide proof of exemption. Send electronic mail if you are uncertain
  881.       of your local tax rate. Shipping and handling is not included in the
  882.       calculation of the sales tax.
  883.  
  884.       Residents of other states will in most cases be required to remit the
  885.       appropriate tax directly to their state tax department.
  886.  
  887.       The Deciwrite Demo Disk includes one $3.00 discount toward the
  888.       purchase of Deciwrite 1.10.
  889.  
  890.       An individual license permits the user to operate the program on
  891.       a single computer at a time, while a site license permits unlimited use
  892.       within the confines of a contiguous area of the owner's property.
  893.  
  894.       These prices are guaranteed not to increase through October 1, 1989.
  895.  
  896.       Custom implementations of these programs are also available on
  897.       request for modest additional fees. Send electronic mail to one
  898.       of the addresses listed earlier.
  899.  
  900.       If you would like to use your Visa or MasterCard to register
  901.       Centiwrite, you may order through the Public (Software) Library.
  902.       The number to call for orders is 1-800-2424-PSL (1-800-242-4775).
  903.       Information and questions about orders is available from the PSL
  904.       at 713-665-7017. You may also write to the PSL at P.O. Box 35707,
  905.       Houston, TX 77235-5705, or send electronic mail via CompuServe to
  906.       71355,470. When writing, you should sign your letter, include your
  907.       card number and its expiration date, and specify that you want to
  908.       register Centiwrite, (CWRITE.ARC), by Andrew M. Saucci, Jr. Please
  909.       note that the PSL is not equipped to answer questions about Centiwrite
  910.       itself. Such questions are best directed to one of the electronic
  911.       mail addresses listed earlier. Also note that no surcharge
  912.       is imposed on credit card orders.
  913.  
  914.       Make checks payable to
  915.  
  916.       Andrew M. Saucci, Jr.
  917.       641 Koelbel Ct
  918.       Baldwin, NY 11510-3915.
  919.  
  920.       Please specify the disk size you require.
  921.  
  922.       You may wish to check one of the electronic mail addresses to verify
  923.       that the above address is current. Please use this "physical" address
  924.       ONLY for orders, unless you lack a modem. All other correspondence,
  925.       including technical support questions, should be directed to one of
  926.       the electronic mail addresses whenever possible.
  927.  
  928.  ============================================================================
  929.  
  930.               Before Going to the Highest Court in the Land
  931.  
  932.    This program is produced by a member of the Association of Shareware
  933. Professionals (ASP). ASP wants to make sure that the shareware principle
  934. works for you. If you are unable to resolve a shareware-related problem with
  935. an ASP member by contacting the member directly, ASP may be able to help. The
  936. ASP Ombudsman can help you resolve a dispute or problem with an ASP member,
  937. but does not provide technical support for members' products. Please write to
  938. the ASP Ombudsman at P.O. Box 5786, Bellevue, WA 98006 or send a CompuServe
  939. message via EasyPlex to ASP Ombudsman 70007,3536.
  940.  
  941.  ============================================================================
  942.  
  943.                                Boilerplate
  944.  
  945.           Liability in the event of defects in Centiwrite 1.10 is expressly
  946. limited to replacement of the disk on which Centiwrite was originally
  947. provided. No other liability of any sort is either implied or assumed. The
  948. user is wholly responsible for making duplicate copies of all data sufficient
  949. to protect against loss. Also, the user is responsible for any consequential
  950. damages that may result from using this program, such as loss of data, loss
  951. of income, pain and suffering, etc.
  952.  
  953.  =============================================================================
  954.  
  955.                         To All Those Who Helped
  956.  
  957.           Thanks to all those who gave their assistance toward the completion
  958. of this program, especially Michael Day, Neil Rubenking, Scott Bussinger, and
  959. all the other helpful people who frequent Borland's Programming Forum A
  960. (BPROGA) on CompuServe. It's truly amazing!
  961.  
  962.  ============================================================================
  963.  
  964.       Even if you've decided that none of these products is for you, your
  965.       comments are appreciated. Send a message to one of the electronic
  966.       addresses listed earlier, and explain what you don't like about the
  967.       products. Perhaps some of the deficiencies can be corrected in future
  968.       releases. Thanks for trying Centiwrite!
  969.  
  970.  ==============================END OF FILE===================================